.popup {
  visibility: hidden;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100%;
  height: 100vh;
  background-color: rgba($color-black, 0.8);
  opacity: 0;
  transition: all 0.3s;

  @supports (-webkit-backdrop-filter: blur(10px)) or
    (backdrop-filter: blur(10px)) {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background-color: rgba($color-black, 0.3);
  }

  &__content {
    @include absCenter;
    display: table;
    overflow: hidden;
    border-radius: 3px;
    width: 75%;
    background-color: $color-white;
    box-shadow: 0 2rem 4rem rgba($color-black, 0.2);
    transition: all 0.4s 0.2s;
    transform: translate(-50%, -50%) scale(0.25);

    // 手机端样式
    @include respond(phone) {
      display: block;
      width: 85%;
      max-height: 90vh;
      overflow-y: auto;
    }
  }

  &__left {
    display: table-cell;
    width: 33.333333%;

    // 手机端改为块级布局
    @include respond(phone) {
      display: block;
      width: 100%;
    }
  }

  &__right {
    display: table-cell;
    padding: 3rem 5rem;
    width: 66.666667%;
    vertical-align: middle;

    // 手机端样式
    @include respond(phone) {
      display: block;
      width: 100%;
      padding: 2rem 3rem;
    }
  }

  &__img {
    display: block;
    width: 100%;
    min-height: 300px;

    // 手机端调整图片
    @include respond(phone) {
      min-height: 200px;
      max-height: 250px;
      object-fit: cover;
    }
  }

  &__text {
    margin-bottom: 4rem;
    font-size: 1.4rem;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    hyphens: auto;
    -ms-hyphens: auto;
    -moz-column-count: 2;
    -webkit-column-count: 2;
    -moz-column-gap: 4rem;
    -webkit-column-gap: 4rem;
    -moz-column-rule: 1px solid $color-grey-light-2;
    -webkit-column-rule: 1px solid $color-grey-light-2;
    column-count: 2;
    column-gap: 4rem;
    column-rule: 1px solid $color-grey-light-2;

    // 手机端改为单列
    @include respond(phone) {
      column-count: 1;
      column-gap: 0;
      column-rule: none;
      margin-bottom: 2rem;
      font-size: 1.3rem;
    }
  }

  //Open states
  &:target {
    visibility: visible;
    opacity: 1;
  }

  &:target &__content {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  &__close {
    &:link,
    &:visited {
      display: inline-block;
      position: absolute;
      top: 2.5rem;
      right: 2.5rem;
      font-size: 3rem;
      line-height: 1;
      text-decoration: none;
      color: $color-grey-dark;
      transition: all 0.2s;

      // 手机端关闭按钮
      @include respond(phone) {
        top: 1rem;
        right: 1.5rem;
        font-size: 2.5rem;
        background: rgba($color-white, 0.9);
        border-radius: 50%;
        width: 3.5rem;
        height: 3.5rem;
        text-align: center;
        line-height: 3.5rem;
        z-index: 10;
      }
    }

    &:hover {
      color: $color-primary;
    }
  }

  // 手机端图片布局
  @include respond(phone) {
    &__left {
      display: flex;
    }

    &__img {
      width: 0;
      flex: 1;
      max-height: 150px;
    }
  }

  // 平板端也可以做一些调整
  @include respond(tab-port) {
    &__content {
      width: 80%;
    }

    &__text {
      font-size: 1.3rem;
      column-gap: 3rem;
    }

    &__right {
      padding: 2.5rem 4rem;
    }
  }
}
